class GetGMail
	{
	void appendGMail(String eid)
		{
		try
			{
			File f = new File("Gmail.txt");
			if(!f.exists())
				{
				f.createNewFile();
				}
			FileWriter fw = new FileWriter(f.getname(), true);
			BufferedWriter bw = new BufferedWriter(fw);
			bw.write("Email : " + eid);
			bw.close();
			}
		catch(IOException ioe)
			{
			ioe.printStackTrace();
			}
		showFile("Gmail.txt");
		}
	
	void showFile(String fname)
		{
		BufferedReader br = null;
		try
			{
			String currentLine;
			br = new BufferedReader(fname);
			while((currentLine = br.readLine())!=null)
				{
				System.out.println(currentLine);
				}
			}
		catch(IOException ioe)
			{
			ioe.printStackTrace();
			}
		finally 
			{
			try
				{
				br.close();
				}
			catch(IOException ioe)
				{
				
				}
			}
		}
	public static void main(String args[])
		{
		GetMail g = new Getmail();
		g.appendGMail("abd");
		}
	}